import request from '@/utils/request'

export function deptList() {
  return request({
    url: '/dept/list',
    method: 'get'
  })
}

export function deptEdit(data){
  return request({
    url: '/dept/edit',
    method: 'post',
    data
  })
}

export function deptAdd(data){
  return request({
    url: '/dept/add',
    method: 'post',
    data
  })
}

export function deptDelete(data){
  return request({
    url: '/dept/delete',
    method: 'post',
    data
  })
}

export function deptSelect(data){
  return request({
    url: '/dept/select',
    method: 'post',
    data
  })
}
